<template>
    <div>
        <router-view></router-view>
        <router-link to="/MultiSelection">跳转首页</router-link>
      <button @click="router.push('/MultiSelection')">跳转至产品页面</button>
      <button @click="goTo">跳转至产品页面</button>
    </div>
</template>

<script setup>
import { useRoute,useRouter } from 'vue-router';

let route = useRoute()
let router = useRouter()
function goTo(){
    console.log(route);
    router.push('/MultiSelection')
}
</script>

<style scoped>

</style>
